package br.com.sistema.vendas.DAOLocal;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

public interface GenericoDAOLocal<T> {

	public void save(T entity);
	
	public void remove(T entity);

	public void update(T entity);
	
	public void merge(T entity);
	
	T getEntity(Serializable id);
	
	T getEntityByDetachedCriteria(DetachedCriteria criteria);
	
	List<T>getEntities();
	
	List<T>DetachedCriteria(DetachedCriteria criteria);
	
	
}
